package org.hcyspartnoc.demo.pojo.po.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@TableName("sys_user")
public class SysUserPo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("account")
    private String account;
    @TableField("open_id")
    private String openId; // 注意Java变量命名规范，通常使用驼峰命名法
    @TableField("password")
    private String password;
    @TableField("nickname")
    private String nickname;
    @TableField("avatar")
    private String avatar;
    @TableField("create_time")
    private LocalDateTime createTime; // 改为java.util.Date类型
    @TableField("last_login_time")
    private LocalDateTime lastLoginTime;
    @TableField("status")
    private Integer status;
    @TableField(exist = false)
    private Integer roleId;
}
